package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 device
 * 
 * @author ruoyi
 * @date 2025-09-25
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 设备MAC地址，用来标识设备 */
    @Excel(name = "设备MAC地址，用来标识设备")
    private String mac;

    /** 归属公司ID */
    @Excel(name = "归属公司ID")
    private Long companyId;

    /** 归属店铺 */
    @Excel(name = "归属店铺")
    private Long shopId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 最后使用时间 */
    @Excel(name = "最后使用时间")
    private String lasttime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    private String shopName;
    private String companyName;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMac(String mac) 
    {
        this.mac = mac;
    }

    public String getMac() 
    {
        return mac;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }

    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }

    public void setLasttime(String lasttime) 
    {
        this.lasttime = lasttime;
    }

    public String getLasttime() 
    {
        return lasttime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mac", getMac())
            .append("companyId", getCompanyId())
            .append("shopId", getShopId())
            .append("ctime", getCtime())
            .append("lasttime", getLasttime())
            .append("status", getStatus())
            .append("remark", getRemark())
                .append("shopName", getShopName())
                 .append("companyName", getCompanyName())
            .toString();
    }
}
